package com.book.bookmanager.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;


@ApiModel(
        value = "role对象",
        description = "角色对象"
)
@TableName("role_menu")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RoleMenu {
        @ApiModelProperty("id")
        @TableId(value = "id",type = IdType.AUTO)
        private Integer id;
        @ApiModelProperty("角色id")
        @TableField("role_id")
        private Integer role_id;
        @ApiModelProperty("角色名")
        @TableField("menu_id")
        private Integer menu_id;




}